package com.tedu.springmvc.pojo.dto;

/**
 * DTO 数据传输对象
 * 该类用于表示前端传递过来的一组数据
 * 当前UserDTO表示的是注册页面上传递过来的一个用户的注册信息
 * 表单有四个输入框，分别是:username,password,nickname,age
 * 因此这里可以设计四个属性对应他们
 */
public class UserDTO {
    private String username;
    private String password;
    private String nickname;
    private Integer age;



    @Override
    public String toString() {
        return "UserDTO{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", age=" + age +
                '}';
    }

    public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
